        function initiate_geolocation() { 
			if(sessionID_ == 0){
				var d = new Date();
				sessionID_ = d.getTime();
			}
			navigator.geolocation.getCurrentPosition(handle_geolocation_query,handle_errors,{timeout:15000, maximumAge:300000, enableHighAccuracy:true});  
			$.get('data/story_kapitel.txt', function(data){
					story_ = data;
			});

        }  
  
        function handle_errors(error)  
        {  
            switch(error.code)  
            {  
                case error.PERMISSION_DENIED: alert("User did not share geolocation data");  
                break;  
  
                case error.POSITION_UNAVAILABLE: alert("Could not detect current position");  
                break;  
  
                case error.TIMEOUT: alert("Retrieving position timed out");  
                break;  
  
                default: alert("Error while retrieving the geolocation");  
                break;  
            }  
        }  
  
        function handle_geolocation_query(position){ 
			coords(position.coords.latitude, position.coords.longitude);
        }  